package com.hdoit.apollo.logical.inStock.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hdoit.apollo.logical.cargo.model.Collocation;
import com.hdoit.apollo.logical.purchase.model.PurchaseCollocation;
import com.hdoit.apollo.logical.stock.model.StockCollocation;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 14:14:35
 * @comment
 */
@Entity
@Table(name="stock_in_stock_collocation")
public class InStockCollocation extends ModelBase{
    //id
    @Id
    @Column(name="inStockCollocationId")
    private String inStockCollocationId;

    //货物规格属性搭配表Id
    @Column(name="collocationId")
    private String collocationId;

    //货物出库详情
    @Column(name="showId")
    private String showId;

    //入库数
    @Column(name="collocationNum")
    private Double collocationNum;
    
    //采购单价或者采购退货单价
    @Column(name="realPrice")
    private Double realPrice;
    
    //单位
    @Column(name="unit")
    private String unit;
    
    //换算比率
    @Column(name="ratio")
    private Double ratio;

    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    //备注
    @Column(name="comment")
    private String comment;
    
    @Transient
    private Collocation collocation;
    
    @Transient
    private PurchaseCollocation purchaseCollocation;
    
    //ionic 标记字段(与ionic进行数据对接)
    @Transient
    private StockCollocation stockCollocation;
    
    public StockCollocation getStockCollocation() {
		return stockCollocation;
	}
	public void setStockCollocation(StockCollocation stockCollocation) {
		this.stockCollocation = stockCollocation;
	}
	public Collocation getCollocation() {
		return collocation;
	}
	public void setCollocation(Collocation collocation) {
		this.collocation = collocation;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}

    public String getInStockCollocationId(){
        return this.inStockCollocationId;
    }
    public void setInStockCollocationId(String inStockCollocationId){
         this.inStockCollocationId=inStockCollocationId;
    }

    public String getCollocationId(){
        return this.collocationId;
    }
    public void setCollocationId(String collocationId){
         this.collocationId=collocationId;
    }

    public String getShowId(){
        return this.showId;
    }
    public void setShowId(String showId){
         this.showId=showId;
    }

    public Double getCollocationNum(){
        return this.collocationNum;
    }
    public void setCollocationNum(Double collocationNum){
         this.collocationNum=collocationNum;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }
	public PurchaseCollocation getPurchaseCollocation() {
		return purchaseCollocation;
	}
	public void setPurchaseCollocation(PurchaseCollocation purchaseCollocation) {
		this.purchaseCollocation = purchaseCollocation;
	}
	public Double getRealPrice() {
		return realPrice;
	}
	public void setRealPrice(Double realPrice) {
		this.realPrice = realPrice;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public Double getRatio() {
		return ratio;
	}
	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}

}